<div class="order-list-page" ng-if="pagedata.op == 'list'">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">待配送订单</div>
		<div class="fui-header-right"></div>
	</div>
	<div class='fui-content navbar order-list'>
	<div class="fui-list-group order-item" ng-repeat="item in pagedata.order_list">
                <a href="" data-nocache="true">
                        <div class="fui-list-group-title lineblock">
                            <i class="icon jinyunicon icon-dianpu"></i> {{item.serve_title || '配送门店'}}
                            <span class="status noremark" style="font-size:0.50rem">门店地址：<span style="color:#f60;">{{item.address || '无'}}</span></span>
                        </div>
                    </a>
					<a href="" class="external" data-nocache="true" ng-repeat="g in item.goods">
                        <div class="fui-list goods-list">
                            <div class="fui-list-media" style="">
                                <img class="" ng-src="{{tomedia(g.image) || '../core/resource/images/nopic.jpg'}}"/>
                            </div>
                            <div class="fui-list-inner">
                                <div class="text goodstitle towline">{{g.goods_title || '商品名称'}}</div>
                            </div>
                            <div class="fui-list-angle" style="width:3rem">
                                ￥<span class="marketprice">{{g.totalprice}}.00</span>({{item.paytype}})</div>
                        </div>
                    </a>
					<div class="fui-list-group-title lineblock">
						<span><i class="icon jinyunicon icon-trade" style="font-size: 0.65rem"> 配送费：￥{{item.out.delivery_fee || 0}}.00</i></span>
						<span><i class="icon jinyunicon icon-trade" style="font-size: 0.65rem"> 下单时间：{{item.createtime}}</i></span>
					</div>
                <div class="fui-list-group-title lineblock">
					<span style="color:#999;font-size:0.55rem"><i class="icon jinyunicon icon-shijian" style="color:#f60;font-size:0.50rem"></i> {{item.order_out.out_time}}</span>
                    <span class="status noremark">配送地址： <span class="text-danger">{{item.order_out.receiver_address}}</span></span>
                </div>
            <div class="fui-list-group-title lineblock opblock">
				<span class="status noremark">
					<div class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'receive','id='+item.id)">接收订单</div>
				</span>
            </div>
        </div>
	</div>
	<div class="content-empty" ng-show="pagedata.order_list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时没有订单！</p>
	</div>
</div>
<div class="order-list-page" ng-if="pagedata.op == 'detail'">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">订单详情</div>
		<div class="fui-header-right"></div>
	</div>
	<div class='fui-content member-page navbar'>
		<div class="fui-list-group merchgroup">
			<div class="fui-list jump">
                <a class="fui-list-media">
                    <img class="round" src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/nopic.jpg'}}" />
                </a>
                <div class="fui-list-inner">
					<div class="title" style="font-size:0.65rem">昵称：{{pagedata.member.nickname}}</div>
                </div>
                <a class="jump" href="javascript:;">
					
				</a>
            </div>
		</div>
		<div class="weui_cells">
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>配送门店</span>
					</div>
					<div class="weui_cell_ft" ng-model="pagedata.post.serve_title">{{pagedata.serve.title}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>配送套餐</span>
					</div>
					<div class="weui_cell_ft" ng-model="pagedata.post.package_title">{{pagedata.order.package.package_title}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>订单时间</span>
					</div>
					<div class="weui_cell_ft" ng-model="pagedata.post.time">{{pagedata.order.day}}--{{pagedata.order.serve_time.times.start}}--{{pagedata.order.serve_time.times.end}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>用户姓名</span>
					</div>
					<div class="weui_cell_ft" ng-model="pagedata.post.address">{{pagedata.order.username}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>联系电话</span>
					</div>
					<div class="weui_cell_ft" ng-model="pagedata.post.address">{{pagedata.order.mobile}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>用户地址</span>
					</div>
					<div class="weui_cell_ft" ng-model="pagedata.post.address">{{pagedata.order.address}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>备注</span>
					</div>
					<div class="weui_cell_ft" ng-model="pagedata.post.remark">{{pagedata.order.remark}}</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>配送费用</span>
					</div>
					<div class="weui_cell_ft" ng-model="pagedata.post.package_price">{{pagedata.order.package.package_price}}元</div>
			</div>
			<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<span>实际支付</span>
					</div>
					<div class="weui_cell_ft" ng-model="pagedata.post.package_price">{{pagedata.order.pay}}元</div>
			</div>
			<div class="weui_cell" ng-repeat="item in pagedata.fileds">
					<div ng-if="item.type != 3" class="weui_cell_bd weui_cell_primary">
						<span>{{item.title}}</span>
					</div>
					<div ng-if="item.type != 3" class="weui_cell_ft" ng-model="pagedata.post.package_price">{{item.data}}</div>
					<div ng-if="item.type == 3" class="weui_cell_bd weui_cell_primary">
						<span>{{item.title}}</span>
					</div>
					 <a class="fui-list-media" ng-if="item.type == 3">
                    <img class="round" src="{{tomedia(item.data) || '../core/resource/images/nopic.jpg'}}" />
                </a>
			</div>
		</div>
	</div>
</div>
<div class="fui-navbar">
	<a href="javascript:;" ng-click="access_json('jy_dish/worker_order/')" class="nav-item" style="background:red;color:#fff">我的配送</a>
</div>